package one.stand.service;

import one.stand.model.OrderinfoModel;
import one.stand.model.ResultModel;
import one.stand.request.UserLevelRequest;
import one.stand.response.UserLevelResponse;

import java.util.List;
import java.util.Map;

/**
 * @author: ZRH
 * @CreateDate: 2019/6/20 10:45
 */
public interface DistributionService {

    /**
     * 申请成为分销员
     *
     * @param request
     * @return
     */
    ResultModel<Boolean> insertUserLevel(UserLevelRequest request);

    /**
     * 分销员中心
     *
     * @param request
     * @return
     */
    ResultModel<Map<String, Object>> getUserLevelInfo(UserLevelRequest request);

    /**
     * 生成邀请卡
     *
     * @param request
     * @return
     */
    ResultModel<Map<String, Object>> saveInvitationCard(UserLevelRequest request);

    /**
     * 邀请存为分销员(扫码进入)
     *
     * @param request
     * @return
     */
    ResultModel<Boolean> saveDistributor(UserLevelRequest request);

    /**
     * 我的邀请列表
     *
     * @param request
     * @return
     */
    ResultModel<Map<String, Object>> myInvitationList(UserLevelRequest request);

    /**
     * 推广商家列表
     *
     * @param request
     * @return
     */
    ResultModel<Map<String, Object>> applyBusinessList(UserLevelRequest request);

    /**
     * 推广订单列表
     *
     * @param request
     * @return
     */
    ResultModel<List<UserLevelResponse>> distributorOrderList(UserLevelRequest request);
}
